import React from 'react';
import { useLocation } from 'umi';

export default () => {
  const { pathname } = useLocation();
  const path = decodeURIComponent(pathname);
  const name = path.substring(path.lastIndexOf('/') + 1);
  return <div>{<h1>英雄名称:[{name}]</h1>}</div>;
};
